package com.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("question")
public class Question {
	@TableId(value = "questionID",type = IdType.AUTO)
    private int questionID;
    private int articleID;
    private String question;
    private String sa;
    private String sb;
    private String sc;
    private String sd;
    private String correctOption;
    private String analysis;
    private int score;

    public Question(int questionID, int articleID, String question, String sa, String sb, String sc, String sd, String correctOption, String analysis, int score) {
        this.questionID = questionID;
        this.articleID = articleID;
        this.question = question;
        this.sa = sa;
        this.sb = sb;
        this.sc = sc;
        this.sd = sd;
        this.correctOption = correctOption;
        this.analysis = analysis;
        this.score = score;
    }

    public int getQuestionID() {
        return questionID;
    }

    public void setQuestionID(int questionID) {
        this.questionID = questionID;
    }

    public int getArticleID() {
        return articleID;
    }

    public void setArticleID(int articleID) {
        this.articleID = articleID;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getSa() {
        return sa;
    }

    public void setSa(String sa) {
        this.sa = sa;
    }

    public String getSb() {
        return sb;
    }

    public void setSb(String sb) {
        this.sb = sb;
    }

    public String getSc() {
        return sc;
    }

    public void setSc(String sc) {
        this.sc = sc;
    }

    public String getSd() {
        return sd;
    }

    public void setSd(String sd) {
        this.sd = sd;
    }

    public String getCorrectOption() {
        return correctOption;
    }

    public void setCorrectOption(String correctOption) {
        this.correctOption = correctOption;
    }

    public String getAnalysis() {
        return analysis;
    }

    public void setAnalysis(String analysis) {
        this.analysis = analysis;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Question{" +
                "questionID=" + questionID +
                ", articleID=" + articleID +
                ", question='" + question + '\'' +
                ", sa='" + sa + '\'' +
                ", sb='" + sb + '\'' +
                ", sc='" + sc + '\'' +
                ", sd='" + sd + '\'' +
                ", correctOption='" + correctOption + '\'' +
                ", analysis='" + analysis + '\'' +
                ", score=" + score +
                '}';
    }
}